<template>
	<div class="card-page">
		<el-row :gutter="12" type="flex">
			<el-col :span="12">
				<el-card shadow="always">
                    <template #header v-if="$props.title">
						<span>{{$props.title}}</span>
                    </template>
					<kv label="名称">
						<el-input v-model="$model.name" chk="*" />
					</kv>
				</el-card>
			</el-col>

		</el-row>
	</div>
</template>
<style scoped lang="scss">
</style>
<script setup>
/**
 * Created by CodeGenerator  at 2022-09-07 13:54:56
 */


defineOptions({
    name: "id-name-card",
    inheritAttrs: true,
});

//定义 vue2的this,当前组件
const $self = getCurrentInstance();

//定义 $attrs
const $attrs = useAttrs();


const $props = defineProps({
    id: { type: String } ,
    action: { type: String } ,
    title : { type: String }
});

const action_name = $computed(()=>{
    return {add: "添加", edit: "修改"}[$props.action]
});
const $model = defineModel({ type: Object });



const list = ref();

//定义事件
const $emit = defineEmits(["update:modelValue","loaded"]);


</script>
